package com.project.bean;

import java.time.LocalDate;

/**
 *项目进度实体类
 */
public class ProgressBean {
    /*进度id*/
    private  Integer prgId;
    /*员工对象*/
    private EmployeeBean employee;
    /*项目对象*/
    private ProjectBean project;
    /*加入时间*/
    private LocalDate joinDate =LocalDate.now();
    /*结束时间*/
    private String finishDate="未完成";

    public ProgressBean() {
    }

    public ProgressBean(EmployeeBean employee, ProjectBean project) {
        this.employee = employee;
        this.project = project;
    }

    public Integer getPrgId() {
        return prgId;
    }

    public void setPrgId(Integer prgId) {
        this.prgId = prgId;
    }

    public EmployeeBean getEmployee() {
        return employee;
    }

    public void setEmployee(EmployeeBean employee) {
        this.employee = employee;
    }

    public ProjectBean getProject() {
        return project;
    }

    public void setProject(ProjectBean project) {
        this.project = project;
    }

    public LocalDate getJoinDate() {
        return joinDate;
    }

    public void setJoinDate(LocalDate joinDate) {
        this.joinDate = joinDate;
    }

    public String getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(String finishDate) {
        this.finishDate = finishDate;
    }

    @Override
    public String toString() {
        return "ProgressBean{" +
                "prgId=" + prgId +
                ", employee=" + employee +
                ", project=" + project +
                ", joinDate=" + joinDate +
                ", finishDate='" + finishDate + '\'' +
                "}\n";
    }
}
